package com.winterchen.schedule;

import com.winterchen.manager.BrowserManager;
import com.winterchen.manager.PushYwptManager;
import com.winterchen.model.Ywpt;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class Schedule {
    @Autowired
    private PushYwptManager ywptManager;

    @Scheduled(cron = "0/10 * * * * ?")
    public void autoPushYwpt() {
        ywptManager.push();
    }



}
